package controller

import (
	"github.com/gin-gonic/gin"
	"my_music_server/common"
	"my_music_server/service"
	"net/http"
)

var _songService = &service.SongService{}

// GetSongList 获取歌曲列表接口
// @Summary 获取歌曲列表接口
// @Description 获取所有歌曲列表接口
// @Tags 歌曲相关接口
// @Accept application/json
// @Produce application/json
// @Param auth-token header string false "token令牌"
// @Security ApiKeyAuth
// @Success 200 {object} common.R
// @Router /song/all [get]
func GetSongList(c *gin.Context)  {
	songList := _songService.GetSongList()
	c.JSON(http.StatusOK,common.Ok().DataKV("songlist",&songList))
}
